import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'package:jm_flutter/src/ui/page/about_page.dart';
import 'package:jm_flutter/src/ui/page/app_language_page.dart';
import 'package:jm_flutter/src/ui/page/privacy_policy_page.dart';
import 'package:jm_flutter/src/ui/page/user_agreement_page.dart';

export 'jm_page.dart';

class JmPages {
  ///初始化页面
  //static const String init = "/init";

  ///设置语言页面
  static const String appLanguagePage = "/AppLanguagePage";

  ///关于页面
  static const String aboutPage = "/AboutPage";

  ///隐私政策页面
  static const String privacyPolicyPage = "/PrivacyPolicyPage";

  ///用户协议页面
  static const String userAgreementPage = "/UserAgreementPage";

  ///别名映射页面
  static final List<GetPage> pages = [
    GetPage(name: appLanguagePage, page: () => const AppLanguagePage()),
    GetPage(name: aboutPage, page: () => const AboutPage()),
    GetPage(name: privacyPolicyPage, page: () => const PrivacyPolicyPage()),
    GetPage(name: userAgreementPage, page: () => const UserAgreementPage()),
  ];
}
